package cn.yunyichina.provider.framework.dubbo.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.provider.iface.service.IBone;
import cn.yunyichina.provider.iface.service.IDrug;

public class DrugService {

	static final String serviceName = "drugService";

    static IDrug drugService = null;

    static {
        drugService = (IDrug) SpringContextHandler.getBean(serviceName);
    }
    
    public static IDrug getDrugClient(){
    	return drugService;
    }

    public static Response callUnderlineFromInternal(String method, String data) {
        return drugService.callUnderlineFromInternal("", method, data, (short) 0);
    }

    public static Response callUnderlineFromInternal(String sessionId, String method, String data) {
        return drugService.callUnderlineFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String sessionId, String method, String data) {
        return drugService.callHumpFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String method, String data) {
        return drugService.callHumpFromInternal("", method, data, (short) 0);
    }
}
